package com.sxpi.chapter02;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * @Author: 董伟豪
 * @Date: 2023/2/6 14:01
 */
public class Address extends Object implements Serializable,Cloneable {

    private String provincial;

    private String city;

    public Address() {
        System.out.println("构造函数进来了");
    }

    public Address(String provincial, String city) {
        this.provincial = provincial;
        this.city = city;
    }

    public String getProvincial() {
        return provincial;
    }

    public void setProvincial(String provincial) {
        this.provincial = provincial;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
